import http from "@/utils/http";
const prefixUrl = {
  queryVip: "/analysis/memberType/list",
  queryPopular: "/analysis/popularLevel/list",
  queryScore: "/analysis/scoreLevel/list",
  createVip: "/analysis/memberType/add",
  createPopular: "/analysis/popularLevel/add",
  createScore: "/analysis/scoreLevel/add",
  updateVip: "/analysis/memberType/edit",
  updatePopular: "/analysis/popularLevel/edit",
  updateScore: "/analysis/scoreLevel/edit",
  queryVipById: "/analysis/memberType/info",
  queryPopularById: "/analysis/popularLevel/info",
  queryScoreById: "/analysis/scoreLevel/info",
  updateVipStatus: "/analysis/memberType/disable",
  updatePopularStatus: "/analysis/popularLevel/disable",
  updateScoreStatus: "/analysis/scoreLevel/disable",
  queryAddFriendIsMember: "/analysis/memberType/getAddFriendIsMember",
  updateAddFriendIsMember: "/analysis/memberType/setAddFriendIsMember",
};
export default {
  role: {
    queryVip: "POST:" + prefixUrl.queryVip,
    queryPopular: "POST:" + prefixUrl.queryPopular,
    queryScore: "POST:" + prefixUrl.queryScore,
    createVip: "POST:" + prefixUrl.createVip,
    createPopular: "POST:" + prefixUrl.createPopular,
    createScore: "POST:" + prefixUrl.createScore,
    updateVip: "POST:" + prefixUrl.updateVip,
    updatePopular: "POST:" + prefixUrl.updatePopular,
    updateScore: "POST:" + prefixUrl.updateScore,
    queryVipById: "POST:" + prefixUrl.queryVipById,
    queryPopularById: "POST:" + prefixUrl.queryPopularById,
    queryScoreById: "POST:" + prefixUrl.queryScoreById,
    updateVipStatus: "POST:" + prefixUrl.updateVipStatus,
    updatePopularStatus: "POST:" + prefixUrl.updatePopularStatus,
    updateScoreStatus: "POST:" + prefixUrl.updateScoreStatus,
  },
  updateAddFriendIsMember(params = {}) {
    return http.post(prefixUrl.updateAddFriendIsMember, params);
  },
  queryAddFriendIsMember(params = {}) {
    return http.post(prefixUrl.queryAddFriendIsMember, params);
  },
  queryVip(params = {}) {
    return http.post(prefixUrl.queryVip, params);
  },
  queryPopular(params = {}) {
    return http.post(prefixUrl.queryPopular, params);
  },
  queryScore(params = {}) {
    return http.post(prefixUrl.queryScore, params);
  },
  createVip(params = {}) {
    return http.post(prefixUrl.createVip, params);
  },
  createPopular(params = {}) {
    return http.post(prefixUrl.createPopular, params);
  },
  createScore(params = {}) {
    return http.post(prefixUrl.createScore, params);
  },
  updateVip(params = {}) {
    return http.post(prefixUrl.updateVip, params);
  },
  updatePopular(params = {}) {
    return http.post(prefixUrl.updatePopular, params);
  },
  updateScore(params = {}) {
    return http.post(prefixUrl.updateScore, params);
  },
  queryVipById(params = {}) {
    return http.post(prefixUrl.queryVipById, params);
  },
  queryPopularById(params = {}) {
    return http.post(prefixUrl.queryPopularById, params);
  },
  queryScoreById(params = {}) {
    return http.post(prefixUrl.queryScoreById, params);
  },
  updateVipStatus(params = {}) {
    return http.post(prefixUrl.updateVipStatus, params);
  },
  updatePopularStatus(params = {}) {
    return http.post(prefixUrl.updatePopularStatus, params);
  },
  updateScoreStatus(params = {}) {
    return http.post(prefixUrl.updateScoreStatus, params);
  },
};
